<nz-tabset [nzTabPosition]="'top'"
           nzType="card"
           [nzSelectedIndex]="activeIndex"
           (nzSelectChange)="selectTab($event)"
           class="text-left dhl-tab-set"
>
  <nz-tab *ngFor="let tab of tabDatas,let n = index" [nzTitle]="titleTemplate" class="dhl-tab">
    <ng-template #tabSetDiv></ng-template>
    <ng-template #titleTemplate>
      <ng-container>
        <div>
          {{ tab.title }}
          <i *ngIf="tab.showClose" nz-icon nzType="close" class="ant-tabs-close-x" (click)="closeTab(tab,n)"></i>
        </div>
      </ng-container>
    </ng-template>
  </nz-tab>
</nz-tabset>



